Resource URL: /platform/<<version=1>>/job/types/<NAME>

    Overview: This resource applies the standard collection pattern to
              individual job types.  NAME in the resource path is the job type
              ID.

     Methods: GET, PUT

********************************************************************************

Method GET: Retrieve job type information.

       URL: GET /platform/<<version=1>>/job/types/<NAME>

There are no query arguments for this method.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "types": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "properties": {
              "priority": {
                "required": true, 
                "minimum": 1, 
                "type": "integer", 
                "description": "Default priority of this job type; lower numbers preempt higher numbers.", 
                "maximum": 10
              }, 
              "description": {
                "required": true, 
                "type": "string", 
                "description": "Brief description of the job type."
              }, 
              "schedule": {
                "required": true, 
                "type": [
                  "string", 
                  "null"
                ], 
                "description": "The schedule on which this job type is queued, if any."
              }, 
              "enabled": {
                "required": true, 
                "type": "boolean", 
                "description": "Whether the job type is enabled and able to run."
              }, 
              "exclusion_set": {
                "required": true, 
                "type": "string", 
                "description": "The set(s) of mutually-exclusive job types to which this job belongs.  No job in this set may run with any other job in this set.  Obsolete; this value will always be an empty string, as exclusion sets are no longer a job type property."
              }, 
              "policy": {
                "required": true, 
                "type": "string", 
                "description": "Default impact policy of this job type."
              }, 
              "hidden": {
                "required": true, 
                "type": "boolean", 
                "description": "Whether this job type is normally visible in the UI."
              }, 
              "allow_multiple_instances": {
                "required": true, 
                "type": "boolean", 
                "description": "Whether multiple instances of this job type may run simultaneously."
              }, 
              "id": {
                "required": true, 
                "type": "string", 
                "description": "Job type ID."
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Modify the job type.  All input fields are optional, but one or
            more must be supplied.

       URL: PUT /platform/<<version=1>>/job/types/<NAME>

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "properties": {
    "policy": {
      "type": "string", 
      "description": "Default impact policy of this job type."
    }, 
    "priority": {
      "minimum": 1, 
      "type": "integer", 
      "description": "Default priority of this job type; lower numbers preempt higher numbers.", 
      "maximum": 10
    }, 
    "enabled": {
      "type": "boolean", 
      "description": "Whether the job type is enabled and able to run."
    }, 
    "schedule": {
      "type": [
        "string", 
        "null"
      ], 
      "description": "The schedule on which this job type is queued, if any."
    }
  }
}

There is no JSON response body for this method.
